import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
   {
     path:"/layout",
     name:'layout',
     component:() => import('@/views/mobile/layout'),
     children:[
      {
        // 首页
        path:"/home",
      
        component:() => import('@/views/mobile/home')
      },
      {
        // 问答页面
        path:"/question",
        name:'question',
        component:() => import('@/views/mobile/question')
      },
      {
        // 视频列表
        path:"/video",
        name:'video',
        component:() => import('@/views/mobile/video')
      },
      {
        // 个人中心页面
        path:"/my",
        name:'my',
        component:() => import('@/views/mobile/my')
      },
     ]
   },
   {
    // 个人中心页面
    path:"/login",
    name:'login',
    component:() => import('@/views/mobile/login')
  },
  {
    // 个人中心页面
    path:"/login",
    name:'login',
    component:() => import('@/views/mobile/login')
  },
  {
    // 个人中心页面
    path:"/login",
    name:'login',
    component:() => import('@/views/mobile/login')
  },
  ]
})
